package com.qq.day02.work2;

public class Clerk extends Employee {


    public Manager Manger;//经理

    public Clerk() {

    }

    @Override
    void showMsg() {
        System.out.println("职工：工号为" + getWorkid() + "，名字为" + getName() + "，部门为" + getDept() + "，他的经理名字是" + getManger().getName());
    }

    public Clerk(String name, String workid, String dept, Manager manger) {
        super(name, workid, dept);
        Manger = manger;
    }

    public Manager getManger() {
        return Manger;
    }

    public void setManger(Manager manger) {
        Manger = manger;
    }
}
